/*
 * @Description: 
 * @Author: Junhuang
 * @Date: 2022-02-28 14:45:08
 * @LastEditTime: 2022-02-28 14:50:52
 * @LastEditors: Junhuang
 * @Reference: 
 */
'use strict';

const Service = require('egg').Service;

class FavaService extends Service {
  async getFavaCount(user_id) {
    return this.app.model.Fava.count({
      where: {
        user_id
      }
    });
  }
}

module.exports = FavaService;
